/*
 * Created on 12.11.2006
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.nsu.konus.control.commands;

/**
 * @author Strot
 *
 */
public class ControlSymbol {
	
	private char key;
	
	private boolean useShift;
	
	public ControlSymbol(char key, boolean useShift){
		this.key = key;
		this.useShift = useShift;
	}
	
	public char getKey() {
		return key;
	}
	
	public boolean isUseShift() {
		return useShift;
	}
	
	public String toString() {
		StringBuffer buf = new StringBuffer();
		buf.append("[" + (int)key);
		if (useShift)
			buf.append(" with shift");
		buf.append("]");
		return buf.toString();
	}
}
